package org.opentcs.kcvehicle;

import com.google.inject.assistedinject.FactoryModuleBuilder;
import org.opentcs.customizations.kernel.KernelInjectionModule;
import org.opentcs.kcvehicle.communication.kc.service.Communication;
import org.opentcs.kcvehicle.communication.kc.service.CommunicationFactory;
import org.opentcs.kcvehicle.communication.kc.service.KCCommunicationImpl;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2025/5/15 10:22
 */
public class CommServiceModule
    extends KernelInjectionModule {

  public CommServiceModule() {
  }

  @Override
  protected void configure() {
    install(
        new FactoryModuleBuilder()
            //如果后续 kc的协议换掉了，换成其他的 了，就改成不同的实现类即可
            .implement(Communication.class, KCCommunicationImpl.class)
            .build(CommunicationFactory.class)
    );
  }
}
